package nsh.cl.nd.khtn.mazedash.entity;

public class Cell {
	private GUICell guiCell;
	private int data;
	
	public Cell(int data, GUICell guiCell) {
		this.guiCell = guiCell;
		setData(data);
	}
	
	public GUICell getGuiCell() {
		return guiCell;
	}
	public void setGuiCell(GUICell guiCell) {
		this.guiCell = guiCell;
	}
	public int getData() {
		return data;
	}
	public void setData(int data) {
		this.data = data;
		guiCell.setCellType(CellType.fromValue(data));
	}
}
